<%@page contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<jsp:include page="header.jsp" />
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page session="false"%>
<body>
    <jsp:include page="top.jsp" />
    <jsp:include page="sitebar.jsp" />
    <h1>Subscribe</h1>

<form:form commandName="user" style="padding:8px">
    Enter your mail:
    <form:input path="mail"></form:input>
    <input type="submit" value="Subscribe"/>
</form:form>

<br>
${message}
<br>

<b>Subscribers</b><br>
<ul>
<c:forEach items="${users}" var="us">
	<li>${us.mail}</li>
</c:forEach>
</ul>
</body>
</html>